package com.macro.mall.tiny.modules.oms.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * vip计划表
 * </p>
 *
 * @author tyrone
 * @since 2024-10-26
 */
@Getter
@Setter
@TableName("oms_good")
@ApiModel(value = "OmsGood对象", description = "vip计划表")
public class OmsGood implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("计划名称")
    private String name;

    @ApiModelProperty("计划描述")
    private String description;

    @ApiModelProperty("费用(单位 分)")
    private Integer fee;

    @ApiModelProperty("持续时间（单位 天）")
    private Integer duration;

    @ApiModelProperty("计划创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer pageSize;

    @TableField(exist = false)
    @ApiModelProperty("分页参数")
    private Integer pageNum;

}
